package com.sanley.piss.web.manager.shiro.realm;

import com.gitee.dreamkaylee.shiro.realm.AbstractAuthorizingRealm;
import org.apache.shiro.authc.UsernamePasswordToken;

/**
 * @author limk
 * @date 2020/12/15 16:56
 */
public class UsernamePasswordRealm extends AbstractAuthorizingRealm {

    @Override
    public Class<?> getAuthenticationTokenClass() {
        return UsernamePasswordToken.class;
    }

//    @Override
//    protected AuthenticationInfo doGetAuthenticationInfo(AuthenticationToken token) throws AuthenticationException {
//        this.clearCachedAuthorizationInfo(SecurityUtils.getSubject().getPrincipals());
//        return super.doGetAuthenticationInfo(token);
//    }
}
